#TOPDIR=$(shell cd ../../../../../; pwd)
#include $(TOPDIR)/Profile.mak

TARGET=netscan

OBJS+=main.o arp.o bios.o ns.o suci.o

CFLAGS += -Wall -g

LDFLAGS+=-L. -luci

all:${OBJS}
	$(CC) $(LDFLAGS) $(CFLAGS) -o $(TARGET) $(OBJS)

install:
	sudo cp wifi_network /sbin/wifi_network

%.o : %.c
	$(CC) $(CFLAGS) -c $<

clean:
	rm -f *.o 
	rm -f netscan
